import java.awt.event.*;  
import java.awt.*;
import javax.swing.*;  
public class jogo {  
public static void main(String[] args) {  
JFrame f=new JFrame();//creating instance of JFrame  
Image icon = Toolkit.getDefaultToolkit().getImage("icon6-1.png");
f.setIconImage(icon); 
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JButton b=new JButton("Round 1");//creating instance of JButton  
b.setBounds(140,100,100, 40);//x axis, y axis, width, height  
JButton b1=new JButton("Round 2");//creating instance of JButton  
b1.setBounds(140,150,100, 40);//x axis, y axis, width, height  
JButton b2=new JButton("Round 3");//creating instance of JButton  
b2.setBounds(140,200,100, 40);//x axis, y axis, width, height  
JButton b3=new JButton("Round 4");//creating instance of JButton  
b3.setBounds(140,250,100, 40);//x axis, y axis, width, height  
JButton b4=new JButton("Round 5");//creating instance of JButton  
b4.setBounds(140,300,100, 40);//x axis, y axis, width, height  
JButton b5=new JButton("Fim");//creating instance of JButton  
b5.setBounds(140,350,100, 40);//x axis, y axis, width, height  
JLabel l1=new JLabel("Round actual: nehum");  
l1.setBounds(130,50, 200,30);   
JTextField t1=new JTextField("");  
t1.setBounds(87,430, 200,30);  
JLabel l2=new JLabel("Organizado por: Desconhecido");  
l2.setBounds(89,400, 200,30);   
JButton b6=new JButton("Modificar");//creating instance of JButton  
b6.setBounds(140,470,100, 20);//x axis, y axis, width, height  
JTextField t2=new JTextField("");  
t2.setBounds(340,100, 200,30);  
JLabel l3=new JLabel("Nome de jogo: Desconhecido");  
l3.setBounds(340,75, 200,30);   
JButton b7=new JButton("Modificar");//creating instance of JButton  
b7.setBounds(340,135,200, 20);//x axis, y axis, width, height
JTextField t3=new JTextField("");  
t3.setBounds(340,200, 200,30);  
JLabel l4=new JLabel("Gagnante: nehum");  
l4.setBounds(340,175, 200,30);   
JButton b8=new JButton("Modificar");//creating instance of JButton  
b8.setBounds(340,235,200, 20);//x axis, y axis, width, height
JTextField t4=new JTextField("");  
t4.setBounds(340,300, 200,30);  
JLabel l5=new JLabel("Gagnante total: nehum");  
l5.setBounds(340,275, 200,30);   
JButton b9=new JButton("Modificar");//creating instance of JButton  
b9.setBounds(340,335,200, 20);//x axis, y axis, width, height



f.add(b);//adding button in JFrame  
f.add(b1);//adding button in JFrame 
f.add(b2);//adding button in JFrame  
f.add(b3);//adding button in JFrame  
f.add(b4);//adding button in JFrame 
f.add(b5);//adding button in JFrame 
f.add(l1);
f.add(t1);
f.add(l2);
f.add(b6);
f.add(t2);
f.add(l3);
f.add(b7);
f.add(t3);
f.add(l4);
f.add(b8);
f.add(t4);
f.add(l5);
f.add(b9);
          
b.addActionListener(new ActionListener(){  
    public void actionPerformed(ActionEvent e){  
        l1.setText("Round actual: 1");  
        l1.setBounds(145,50, 200,30);  
    }  
    
    });

        b1.addActionListener(new ActionListener(){  
            public void actionPerformed(ActionEvent e){  
                l1.setText("Round actual: 2");  
                l1.setBounds(145,50, 200,30);  
            }  
            
            });

            b2.addActionListener(new ActionListener(){  
                public void actionPerformed(ActionEvent e){  
                    l1.setText("Round actual: 3");  
                    l1.setBounds(145,50, 200,30);  
                }  
                
                });
                b3.addActionListener(new ActionListener(){  
                    public void actionPerformed(ActionEvent e){  
                        l1.setText("Round actual: 4");  
                        l1.setBounds(145,50, 200,30);  
                    }  
                    
                    });
                    b4.addActionListener(new ActionListener(){  
                        public void actionPerformed(ActionEvent e){  
                            l1.setText("Round actual: 5");  
                            l1.setBounds(145,50, 200,30);  
                        }  
                        
                        });
                        b5.addActionListener(new ActionListener(){  
                            public void actionPerformed(ActionEvent e){  
                                l1.setText("Round actual: Fim");  
                                l1.setBounds(140,50, 200,30);  
                            }  
                            
                            });
b6.addActionListener(new ActionListener(){  
    public void actionPerformed(ActionEvent e){  
        l2.setText("Organizado por: " + t1.getText());  
    }  
                                
    });

    b7.addActionListener(new ActionListener(){  
        public void actionPerformed(ActionEvent e){  
            l3.setText("Nome de jogo: " + t2.getText());  
        }  
                                    
        });

        b8.addActionListener(new ActionListener(){  
            public void actionPerformed(ActionEvent e){  
                l4.setText("Gaganante: " + t3.getText());  
            }  
                                        
            });

            b9.addActionListener(new ActionListener(){  
                public void actionPerformed(ActionEvent e){  
                    l5.setText("Gagnante total: " + t4.getText());  
                }  
                                            
                });
                    
                

f.setSize(750,750);//400 width and 500 height  
f.setLayout(null);//using no layout managers  
f.setVisible(true);//making the frame visible  
}  
}
